﻿
@using System.Globalization;

@{
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";

}
<div class="row">
    <h3 class="page-header">Cấu hình</h3>
</div>
<div id="wrapper">
    <div class="clear-fix"></div>
    <div class="row">
        <div class="col-lg-12">
            <div class="panel-body">
                <div class="dataTable_wrapper">
                    <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                        <thead>
                            <tr >                             
                                <th>Tên tầng</th>
                                <th>Hoa hồng</th>
                              
                                <th>Tùy chọn</th>
                            </tr>
                        </thead>
                        <tbody >
                            @{int j = 0;}
                            @foreach (var item in ViewBag.ListDT)
                            {
                                j++;
                                <tr>                                 
                                    <td>@item.Floors_Name</td>
                                    <td>@String.Format("{0:N}", item.Commission)</td>
                                  
                                    <td>
                                        <a href="@Url.Action("UpdateDeuTangProfit", "DeuTang", new { fl = item.Floors_ID, ulv = item.UserLevel })">Edit</a>&nbsp&nbsp;
                                        <a href="@Url.Action("DeleteDeuTangProfit", "DeuTang", new { fl = item.Floors_ID, ulv = item.UserLevel })" class="Indedt">Delete</a>
                                    </td>
                                </tr>
                            }
                        </tbody>
                    </table>
                    <a href="@Url.Action("AddDeuTangProfit", "DeuTang")" class="btn_submit btn btn-default">Add</a>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $(document).ready(function () {
        $('#dataTables-example').DataTable({
            responsive: true
        });
    });
    $('.Indedt').on('click', function () {
        return confirm('bạn có chắc chắn muốn xóa?');
    });
</script>